#include <iostream>
#include <vector>
using namespace std;

vector<int> arr;

int main()
{
    int a, b, length;
    cin >> a >> b >> length;
    arr.push_back(a);
    arr.push_back(b);
    
    int pos = 2;
    while (arr.size() < length)
    {
        int ret = arr[pos - 2] * arr[pos - 1];
        if (ret < 10)
        {
            arr.push_back(ret);
        }
        else
        {
            int g = ret % 10;
            ret /= 10;
            int s = ret % 10;
            arr.push_back(s);
            arr.push_back(g);
        }
        pos++;
    }
    for (vector<int>::iterator it = arr.begin(); it != arr.end(), length-- != 0; it++)
    {
        cout << *it;
        if (length)
        {
            cout << " ";
        }
    }
    return 0;
}